﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GheSofa.Models;

namespace GheSofa.Controllers
{
    public class LoaiGheController : Controller
    {
        private GheSofaEntities ghe = new GheSofaEntities();
        //
        // GET: /LoaiGhe/
        [ChildActionOnly]
        public ActionResult Menu()
        {
            var phanloai = (from p in ghe.PhanLoais orderby p.MaLoai select p).ToList();
            return PartialView(phanloai);
        }
        [ChildActionOnly]
        public ActionResult Menutimkiem()
        {
            var loaighe = (from p in ghe.PhanLoais orderby p.MaLoai select p).ToList();
            return PartialView(loaighe);
        }
    }
}
